<?php
$tdataadmin_users=array();
	$tdataadmin_users[".NumberOfChars"]=80; 
	$tdataadmin_users[".ShortName"]="admin_users";
	$tdataadmin_users[".OwnerID"]="";
	$tdataadmin_users[".OriginalTable"]="users";


	
//	field labels
$fieldLabelsadmin_users = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsadmin_users["English"]=array();
	$fieldToolTipsadmin_users["English"]=array();
	$fieldLabelsadmin_users["English"]["id"] = "Id";
	$fieldToolTipsadmin_users["English"]["id"] = "";
	$fieldLabelsadmin_users["English"]["user_name"] = "User Name";
	$fieldToolTipsadmin_users["English"]["user_name"] = "";
	$fieldLabelsadmin_users["English"]["role_id"] = "Role";
	$fieldToolTipsadmin_users["English"]["role_id"] = "";
	$fieldLabelsadmin_users["English"]["status"] = "Status";
	$fieldToolTipsadmin_users["English"]["status"] = "";
	$fieldLabelsadmin_users["English"]["first_name"] = "First Name";
	$fieldToolTipsadmin_users["English"]["first_name"] = "";
	$fieldLabelsadmin_users["English"]["lastname"] = "Lastname";
	$fieldToolTipsadmin_users["English"]["lastname"] = "";
	$fieldLabelsadmin_users["English"]["company_id"] = "Company";
	$fieldToolTipsadmin_users["English"]["company_id"] = "";
	$fieldLabelsadmin_users["English"]["password"] = "Password";
	$fieldToolTipsadmin_users["English"]["password"] = "";
	$fieldLabelsadmin_users["English"]["last_login"] = "Last Login";
	$fieldToolTipsadmin_users["English"]["last_login"] = "";
	$fieldLabelsadmin_users["English"][""] = "";
	$fieldToolTipsadmin_users["English"][""] = "";
	$fieldLabelsadmin_users["English"][""] = "Add/Edit users";
	$fieldToolTipsadmin_users["English"][""] = "";
	$fieldLabelsadmin_users["English"][""] = "";
	$fieldToolTipsadmin_users["English"][""] = "";
	$fieldLabelsadmin_users["English"][""] = "Add/Edit users";
	$fieldToolTipsadmin_users["English"][""] = "";
	$fieldLabelsadmin_users["English"][""] = "";
	$fieldToolTipsadmin_users["English"][""] = "";
	$fieldLabelsadmin_users["English"][""] = "Add/Edit users";
	$fieldToolTipsadmin_users["English"][""] = "";
	$fieldLabelsadmin_users["English"][""] = "";
	$fieldToolTipsadmin_users["English"][""] = "";
	$fieldLabelsadmin_users["English"][""] = "";
	$fieldToolTipsadmin_users["English"][""] = "";
	if (count($fieldToolTipsadmin_users["English"])){
		$tdataadmin_users[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["user_name"] = "User Name";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["user_name"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["role_id"] = "Role Id";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["role_id"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["status"] = "Status";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["status"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["first_name"] = "First Name";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["first_name"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["lastname"] = "Lastname";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["lastname"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["company_id"] = "Company Id";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["company_id"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["password"] = "Password";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["password"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"]["last_login"] = "Last Login";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"]["last_login"] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"][""] = "Add/Edit users";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelsadmin_users["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"][""] = "";
	if (count($fieldToolTipsadmin_users["Chinese (Hong Kong S.A.R.)"])){
		$tdataadmin_users[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsadmin_users["Chinese (Taiwan)"]=array();
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]=array();
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["user_name"] = "User Name";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["user_name"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["role_id"] = "Role Id";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["role_id"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["status"] = "Status";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["status"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["first_name"] = "First Name";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["first_name"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["lastname"] = "Lastname";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["lastname"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["company_id"] = "Company Id";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["company_id"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["password"] = "Password";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["password"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"]["last_login"] = "Last Login";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"]["last_login"] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"][""] = "";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"][""] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"][""] = "Add/Edit users";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"][""] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"][""] = "";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"][""] = "";
	$fieldLabelsadmin_users["Chinese (Taiwan)"][""] = "";
	$fieldToolTipsadmin_users["Chinese (Taiwan)"][""] = "";
	if (count($fieldToolTipsadmin_users["Chinese (Taiwan)"])){
		$tdataadmin_users[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsadmin_users["French"]=array();
	$fieldToolTipsadmin_users["French"]=array();
	$fieldLabelsadmin_users["French"]["id"] = "Id";
	$fieldToolTipsadmin_users["French"]["id"] = "";
	$fieldLabelsadmin_users["French"]["user_name"] = "User Name";
	$fieldToolTipsadmin_users["French"]["user_name"] = "";
	$fieldLabelsadmin_users["French"]["role_id"] = "Role Id";
	$fieldToolTipsadmin_users["French"]["role_id"] = "";
	$fieldLabelsadmin_users["French"]["status"] = "Status";
	$fieldToolTipsadmin_users["French"]["status"] = "";
	$fieldLabelsadmin_users["French"]["first_name"] = "First Name";
	$fieldToolTipsadmin_users["French"]["first_name"] = "";
	$fieldLabelsadmin_users["French"]["lastname"] = "Lastname";
	$fieldToolTipsadmin_users["French"]["lastname"] = "";
	$fieldLabelsadmin_users["French"]["company_id"] = "Company Id";
	$fieldToolTipsadmin_users["French"]["company_id"] = "";
	$fieldLabelsadmin_users["French"]["password"] = "Password";
	$fieldToolTipsadmin_users["French"]["password"] = "";
	$fieldLabelsadmin_users["French"]["last_login"] = "Last Login";
	$fieldToolTipsadmin_users["French"]["last_login"] = "";
	$fieldLabelsadmin_users["French"][""] = "";
	$fieldToolTipsadmin_users["French"][""] = "";
	$fieldLabelsadmin_users["French"][""] = "Add/Edit users";
	$fieldToolTipsadmin_users["French"][""] = "";
	$fieldLabelsadmin_users["French"][""] = "";
	$fieldToolTipsadmin_users["French"][""] = "";
	$fieldLabelsadmin_users["French"][""] = "Add/Edit users";
	$fieldToolTipsadmin_users["French"][""] = "";
	if (count($fieldToolTipsadmin_users["French"])){
		$tdataadmin_users[".isUseToolTips"]=true;
	}
}


	
	$tdataadmin_users[".NCSearch"]=true;

	

$tdataadmin_users[".shortTableName"] = "admin_users";
$tdataadmin_users[".nSecOptions"] = 0;
$tdataadmin_users[".recsPerRowList"] = 1;	
$tdataadmin_users[".tableGroupBy"] = "0";
$tdataadmin_users[".mainTableOwnerID"] = "";
$tdataadmin_users[".moveNext"] = 1;




$tdataadmin_users[".showAddInPopup"] = false;

$tdataadmin_users[".showEditInPopup"] = false;

$tdataadmin_users[".showViewInPopup"] = false;


$tdataadmin_users[".fieldsForRegister"] = array();

$tdataadmin_users[".listAjax"] = true;

	$tdataadmin_users[".audit"] = false;

	$tdataadmin_users[".locking"] = false;
	
$tdataadmin_users[".listIcons"] = true;
$tdataadmin_users[".inlineEdit"] = true;

$tdataadmin_users[".exportTo"] = true;

$tdataadmin_users[".printFriendly"] = true;

$tdataadmin_users[".delete"] = true;

$tdataadmin_users[".showSimpleSearchOptions"] = true;

$tdataadmin_users[".showSearchPanel"] = true;


$tdataadmin_users[".isUseAjaxSuggest"] = true;

$tdataadmin_users[".rowHighlite"] = true;


// button handlers file names

$tdataadmin_users[".addPageEvents"] = false;

$tdataadmin_users[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdataadmin_users[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdataadmin_users[".isUseTimeForSearch"] = false;

$tdataadmin_users[".isUseiBox"] = false;



$tdataadmin_users[".isUseInlineAdd"] = true;

$tdataadmin_users[".isUseInlineEdit"] = true;
$tdataadmin_users[".isUseInlineJs"] = $tdataadmin_users[".isUseInlineAdd"] || $tdataadmin_users[".isUseInlineEdit"];

$tdataadmin_users[".allSearchFields"] = array();

$tdataadmin_users[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "id";	
}
$tdataadmin_users[".globSearchFields"][] = "user_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("user_name", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "user_name";	
}
$tdataadmin_users[".globSearchFields"][] = "role_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("role_id", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "role_id";	
}
$tdataadmin_users[".globSearchFields"][] = "status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("status", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "status";	
}
$tdataadmin_users[".globSearchFields"][] = "first_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("first_name", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "first_name";	
}
$tdataadmin_users[".globSearchFields"][] = "lastname";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("lastname", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "lastname";	
}
$tdataadmin_users[".globSearchFields"][] = "company_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("company_id", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "company_id";	
}
$tdataadmin_users[".globSearchFields"][] = "password";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("password", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "password";	
}
$tdataadmin_users[".globSearchFields"][] = "last_login";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("last_login", $tdataadmin_users[".allSearchFields"]))
{
	$tdataadmin_users[".allSearchFields"][] = "last_login";	
}


$tdataadmin_users[".googleLikeFields"][] = "id";
$tdataadmin_users[".googleLikeFields"][] = "user_name";
$tdataadmin_users[".googleLikeFields"][] = "role_id";
$tdataadmin_users[".googleLikeFields"][] = "status";
$tdataadmin_users[".googleLikeFields"][] = "first_name";
$tdataadmin_users[".googleLikeFields"][] = "lastname";
$tdataadmin_users[".googleLikeFields"][] = "company_id";
$tdataadmin_users[".googleLikeFields"][] = "password";
$tdataadmin_users[".googleLikeFields"][] = "last_login";



$tdataadmin_users[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "id";	
}
$tdataadmin_users[".advSearchFields"][] = "user_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("user_name", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "user_name";	
}
$tdataadmin_users[".advSearchFields"][] = "role_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("role_id", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "role_id";	
}
$tdataadmin_users[".advSearchFields"][] = "status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("status", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "status";	
}
$tdataadmin_users[".advSearchFields"][] = "first_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("first_name", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "first_name";	
}
$tdataadmin_users[".advSearchFields"][] = "lastname";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("lastname", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "lastname";	
}
$tdataadmin_users[".advSearchFields"][] = "company_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("company_id", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "company_id";	
}
$tdataadmin_users[".advSearchFields"][] = "password";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("password", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "password";	
}
$tdataadmin_users[".advSearchFields"][] = "last_login";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("last_login", $tdataadmin_users[".allSearchFields"])) 
{
	$tdataadmin_users[".allSearchFields"][] = "last_login";	
}

$tdataadmin_users[".isTableType"] = "list";


	

$tdataadmin_users[".isDisplayLoading"] = true;

$tdataadmin_users[".isResizeColumns"] = false;





$tdataadmin_users[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataadmin_users[".strOrderBy"] = $gstrOrderBy;
	
$tdataadmin_users[".orderindexes"] = array();

$tdataadmin_users[".sqlHead"] = "SELECT id,   user_name,   role_id,   status,   first_name,   lastname,   company_id,   password,   last_login";
$tdataadmin_users[".sqlFrom"] = "FROM users";
$tdataadmin_users[".sqlWhereExpr"] = "";
$tdataadmin_users[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataadmin_users[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdataadmin_users[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdataadmin_users[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["id"]=$fdata;
//	user_name
	$fdata = array();
	$fdata["strName"] = "user_name";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="User Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "user_name";
	
		$fdata["FullName"]= "user_name";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["user_name"]=$fdata;
//	role_id
	$fdata = array();
	$fdata["strName"] = "role_id";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="Role"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "role_id";
	
		$fdata["FullName"]= "role_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["role_id"]=$fdata;
//	status
	$fdata = array();
	$fdata["strName"] = "status";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="Status"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "status";
	
		$fdata["FullName"]= "status";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=25";
		
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["status"]=$fdata;
//	first_name
	$fdata = array();
	$fdata["strName"] = "first_name";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="First Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "first_name";
	
		$fdata["FullName"]= "first_name";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["first_name"]=$fdata;
//	lastname
	$fdata = array();
	$fdata["strName"] = "lastname";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="Lastname"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "lastname";
	
		$fdata["FullName"]= "lastname";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["lastname"]=$fdata;
//	company_id
	$fdata = array();
	$fdata["strName"] = "company_id";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="Company"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "company_id";
	
		$fdata["FullName"]= "company_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["company_id"]=$fdata;
//	password
	$fdata = array();
	$fdata["strName"] = "password";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="Password"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "password";
	
		$fdata["FullName"]= "password";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["password"]=$fdata;
//	last_login
	$fdata = array();
	$fdata["strName"] = "last_login";
	$fdata["ownerTable"] = "users";
		$fdata["Label"]="Last Login"; 
	
		
		
	$fdata["FieldType"]= 135;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "last_login";
	
		$fdata["FullName"]= "last_login";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 9;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataadmin_users["last_login"]=$fdata;

	
$tables_data["admin_users"]=&$tdataadmin_users;
$field_labels["admin_users"] = &$fieldLabelsadmin_users;
$fieldToolTips["admin_users"] = &$fieldToolTipsadmin_users;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["admin_users"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["admin_users"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto419=array();
$proto419["m_strHead"] = "SELECT";
$proto419["m_strFieldList"] = "id,   user_name,   role_id,   status,   first_name,   lastname,   company_id,   password,   last_login";
$proto419["m_strFrom"] = "FROM users";
$proto419["m_strWhere"] = "";
$proto419["m_strOrderBy"] = "";
$proto419["m_strTail"] = "";
$proto420=array();
$proto420["m_sql"] = "";
$proto420["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto420["m_column"]=$obj;
$proto420["m_contained"] = array();
$proto420["m_strCase"] = "";
$proto420["m_havingmode"] = "0";
$proto420["m_inBrackets"] = "0";
$proto420["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto420);

$proto419["m_where"] = $obj;
$proto422=array();
$proto422["m_sql"] = "";
$proto422["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto422["m_column"]=$obj;
$proto422["m_contained"] = array();
$proto422["m_strCase"] = "";
$proto422["m_havingmode"] = "0";
$proto422["m_inBrackets"] = "0";
$proto422["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto422);

$proto419["m_having"] = $obj;
$proto419["m_fieldlist"] = array();
						$proto424=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "users"
));

$proto424["m_expr"]=$obj;
$proto424["m_alias"] = "";
$obj = new SQLFieldListItem($proto424);

$proto419["m_fieldlist"][]=$obj;
						$proto426=array();
			$obj = new SQLField(array(
	"m_strName" => "user_name",
	"m_strTable" => "users"
));

$proto426["m_expr"]=$obj;
$proto426["m_alias"] = "";
$obj = new SQLFieldListItem($proto426);

$proto419["m_fieldlist"][]=$obj;
						$proto428=array();
			$obj = new SQLField(array(
	"m_strName" => "role_id",
	"m_strTable" => "users"
));

$proto428["m_expr"]=$obj;
$proto428["m_alias"] = "";
$obj = new SQLFieldListItem($proto428);

$proto419["m_fieldlist"][]=$obj;
						$proto430=array();
			$obj = new SQLField(array(
	"m_strName" => "status",
	"m_strTable" => "users"
));

$proto430["m_expr"]=$obj;
$proto430["m_alias"] = "";
$obj = new SQLFieldListItem($proto430);

$proto419["m_fieldlist"][]=$obj;
						$proto432=array();
			$obj = new SQLField(array(
	"m_strName" => "first_name",
	"m_strTable" => "users"
));

$proto432["m_expr"]=$obj;
$proto432["m_alias"] = "";
$obj = new SQLFieldListItem($proto432);

$proto419["m_fieldlist"][]=$obj;
						$proto434=array();
			$obj = new SQLField(array(
	"m_strName" => "lastname",
	"m_strTable" => "users"
));

$proto434["m_expr"]=$obj;
$proto434["m_alias"] = "";
$obj = new SQLFieldListItem($proto434);

$proto419["m_fieldlist"][]=$obj;
						$proto436=array();
			$obj = new SQLField(array(
	"m_strName" => "company_id",
	"m_strTable" => "users"
));

$proto436["m_expr"]=$obj;
$proto436["m_alias"] = "";
$obj = new SQLFieldListItem($proto436);

$proto419["m_fieldlist"][]=$obj;
						$proto438=array();
			$obj = new SQLField(array(
	"m_strName" => "password",
	"m_strTable" => "users"
));

$proto438["m_expr"]=$obj;
$proto438["m_alias"] = "";
$obj = new SQLFieldListItem($proto438);

$proto419["m_fieldlist"][]=$obj;
						$proto440=array();
			$obj = new SQLField(array(
	"m_strName" => "last_login",
	"m_strTable" => "users"
));

$proto440["m_expr"]=$obj;
$proto440["m_alias"] = "";
$obj = new SQLFieldListItem($proto440);

$proto419["m_fieldlist"][]=$obj;
$proto419["m_fromlist"] = array();
												$proto442=array();
$proto442["m_link"] = "SQLL_MAIN";
			$proto443=array();
$proto443["m_strName"] = "users";
$proto443["m_columns"] = array();
$proto443["m_columns"][] = "id";
$proto443["m_columns"][] = "user_name";
$proto443["m_columns"][] = "role_id";
$proto443["m_columns"][] = "status";
$proto443["m_columns"][] = "first_name";
$proto443["m_columns"][] = "lastname";
$proto443["m_columns"][] = "company_id";
$proto443["m_columns"][] = "password";
$proto443["m_columns"][] = "last_login";
$obj = new SQLTable($proto443);

$proto442["m_table"] = $obj;
$proto442["m_alias"] = "";
$proto444=array();
$proto444["m_sql"] = "";
$proto444["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto444["m_column"]=$obj;
$proto444["m_contained"] = array();
$proto444["m_strCase"] = "";
$proto444["m_havingmode"] = "0";
$proto444["m_inBrackets"] = "0";
$proto444["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto444);

$proto442["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto442);

$proto419["m_fromlist"][]=$obj;
$proto419["m_groupby"] = array();
$proto419["m_orderby"] = array();
$obj = new SQLQuery($proto419);

$queryData_admin_users = $obj;
$tdataadmin_users[".sqlquery"] = $queryData_admin_users;

$tableEvents["admin_users"] = new eventsBase;

?>
